<?php echo $this->load->view('_inc/header_relatorio')?>

<table class="grade">
    <tr>
        <td>
            <table class="gradeDados">
                <tr><td class="label">Data:</td><td><?php echo $data?></td></tr>
                <tr><td class="label">Relator:</td><td><?php echo $relator?></td></tr>
                <tr><td class="label">Tempo de Duração:</td><td><?php echo $tempo?></td></tr>
            </table>
        </td>
        
        <td>
            <table class="lista">
                <tr>
                    <th>Membro</th>
                    <th>Presença</th>
                </tr>
                <?php foreach($membros as $membro){?>
                <tr>
                    <td><?php echo $membro->nome?></td>
                    <td><?php echo $membro->presenca?></td>
                </tr>
                <?php }?>
            </table>
        </td>
    </tr>
</table>

<h1>Pautas</h1>
<?php foreach($pautas as $pauta){ ?>
    <img src="<?php echo base_url()?>public/imagens/icones/direita.png" style="width:18px"/>
    <span class="maior"><?php echo nl2br($pauta->assunto)?></span> - 
    <img src="<?php echo base_url()?>public/imagens/icones/duracao.png" style="width:13px"/>
    <span class="menor"><?php echo $pauta->duracao?></span>
    <hr>
    <p class="texto"><?php echo $pauta->comentario?></p>        
<?php }?>
    <br>

<?php if($temTarefas){ ?>
    <h1>Tarefas dos Membros</h1>
    <?php foreach ($membros as $membro){?>
        <?php if(isset($membro->tarefas)){ ?>
            <img src="<?php echo base_url()?>public/imagens/icones/pessoa.png" style="width:13px"/>
            <span class="medio"><?php echo $membro->nome?></span><hr class="hrMenor">
            <span class="texto">
                <ul>
                    <?php foreach($membro->tarefas as $tarefa){?>
                        <li><?php echo '<b>'.$tarefa->nome.':</b> '.$tarefa->descricao.'<br>Prazo: '.$tarefa->prazo?></li>
                    <?php } ?>
                </ul>
            </span><br>
        <?php } ?>
    <?php }?>
<?php }?>

<?php echo $this->load->view('_inc/footer_relatorio')?>